package com.xuxueli.applyModules.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 测试分区名
 */
@Setter
@Getter
@Table(name = "T_HX_PARTITION")
public class HxPartition implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * SID
     */
    @Column(name = "SID")
    private  String sid;
    /**
     * 表名
     */
    @Column(name = "PARTITION_TABLE_NAME")
    private  String partitionTableName;

    /**
     * 备注
     */
    @Column(name = "NOTE")
    private  String note;

    /**
     * 录入日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "INSERT_TIME")
    private Date insertTime;
    /**
     * 插入人
     */
    @Column(name = "INSERT_USER")
    private String insertUser;
    /**
     * 修改日期（数据最后一次修改日期）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
    /**
     * 修改人
     */
    @Column(name = "UPDATE_USER")
    private String updateUser;
    /**
     * 创建分区标志{1：创建分区 0：不创建分区}
     */
    @Column(name = "CREATE_MARK")
    private String createMark;
}
